feat: support updating existing documents #430
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #
🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request refactors the ETL (Extract, Transform, Load) process for managing chatbot executions and notifications. The main changes include:
execution_management.py
to handle all execution-related operations.notification.py
to integrate with the new execution management process.AddLibrary.tsx
andLibrary.tsx
to work with the new backend changes.en.json
andzh.json
to reflect the updated user interface strings.api-stack.ts
to include the new lambda function.Type of change
File Stats Summary
File number involved in this PR: 15, unfold to see the details:
The file changes summary is as follows:
indexId
andtag
, to theLibraryListItem
type definition.get_execution_item
to retrieve the current execution item from DynamoDB, checks the current execution status before updating, and updates the execution status based on the operation type and current execution status.🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request refactors the ETL (Extract, Transform, Load) process for managing chatbot executions. The main changes include:
execution_management.py
to handle all execution-related operationsThe motivation behind this change is to simplify the codebase, improve maintainability, and enhance the overall developer experience. By consolidating the execution-related operations into a single Lambda function, we can streamline the code and make it easier to manage and extend in the future.
Type of change
File Stats Summary
File number involved in this PR: 15, unfold to see the details:
The file changes summary is as follows:
get_execution_item
to retrieve an execution item from DynamoDB, and modify thelambda_handler
to check the current execution status before updating it toDELETED
status, ensuring it only happens when the current status isDELETING
.